@echo off

rmdir Release /S /Q

msbuild Colorful.Blend.AddIn/Colorful.Blend.AddIn.csproj /p:Configuration=Release /p:ReferencePath="../Lib/Blend 2.0/" /p:OutDir="../Release/Blend 2.0/"
msbuild Colorful.Blend.AddIn/Colorful.Blend.AddIn.csproj /p:Configuration=Release /p:ReferencePath="../Lib/Blend 2.0 SP1 Preview/" /p:OutDir="../Release/Blend 2.0 SP1 Preview/"
msbuild Colorful.Blend.AddIn/Colorful.Blend.AddIn.csproj /p:Configuration=Release /p:ReferencePath="../Lib/Blend 2.5 June Preview/" /p:OutDir="../Release/Blend 2.5 June Preview/"
msbuild Colorful.Design.AddIn/Colorful.Design.AddIn.csproj /p:Configuration=Release /p:ReferencePath="../Lib/Design 2.0/" /p:OutDir="../Release/Design 2.0/"
msbuild Colorful.Host/Colorful.Host.csproj /p:Configuration=Release /p:OutDir="../Release/Colorful WPF/"

del "Release\Blend 2.0\*.pdb" /Q
del "Release\Blend 2.0 SP1 Preview\*.pdb" /Q
del "Release\Blend 2.5 June Preview\*.pdb" /Q
del "Release\Design 2.0\*.pdb" /Q
del "Release\Colorful WPF\*.pdb" /Q

copy Readme.txt Release